﻿import net.spreadshirt.shop.lib.ProducttypeSizes;

/**
 * An article item. This class stores all article item values.
 */
class net.spreadshirt.shop.lib.Article {

	public var article_id:Number;
	public var product_id:Number;
	public var producttype_id:Number;
	public var producttype_color_id:Number;
	public var partner_id:Number;
	public var shop_id:Number;
	public var currency:String;
	public var gross:Number;
	public var vat:Number;
	public var name:String;
	public var description:String;
	public var image_url:String;
	public var base_url:String;
	public var view_count:String;
	public var design_ids:String;
	public var producttype_sizes:ProducttypeSizes;

	/**
	 * Article Constructor
	 */
	public function Article(item:Object) {
		article_id = item.article_id;
		product_id = item.product_id;
		producttype_id = item.producttype_id;
		producttype_color_id = item.producttype_color_id;
		partner_id = item.partner_id;
		shop_id = item.shop_id;
		currency = item.currency;
		gross = item.gross;
		vat = item.vat;
		name = item.name;
		description = item.description;
		image_url = item.image_url;
		base_url = item.base_url;
		view_count = item.view_count;
		design_ids = item.design_ids;
		producttype_sizes = new ProducttypeSizes(item.producttype_sizes);
	}

}
